<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../css/960.css" />
<link rel="stylesheet" type="text/css" href="../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../css/text.css" />
<link rel="stylesheet" type="text/css" href="../css/form.css" />
<link rel="stylesheet" type="text/css" href="../css/designTable.css" />
<link type="text/css" href="../css/smoothness/ui.css" rel="stylesheet" />
<link type="text/css" href="../js/wysiwyg/jquery.wysiwyg.css"
	rel="stylesheet" />
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/wysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
	$(document).ready( function() {
		$('#wysiwyg').wysiwyg();
	});
</script>
<script type="text/javascript" src="../js/blend/jquery.blend.js"></script>
<script type="text/javascript" src="../js/ui.core.js"></script>
<script type="text/javascript" src="../js/ui.sortable.js"></script>
<script type="text/javascript" src="../js/ui.dialog.js"></script>
<script type="text/javascript" src="../js/effects.js"></script>
<sj:head jqueryui="true" jquerytheme="cupertino" />
<title>Insert title here</title>
</head>
<body>
<s:url id="Coordinator_menuCreatePurchase" value="/Coordinator_menuCreatePurchase" />
<sj:a title="Hoa don"
	id="lnkCoordinator_menuCreatePurchase" href="%{Coordinator_menuCreatePurchase}"
	targets="container" button="true" buttonIcon="new" cssStyle="float:right; margin-right:20px;">
	Thêm mới 
</sj:a>
<h1 class="content_edit">DANH SÁCH HÓA ĐƠN</h1>

<div class="container">
<fieldset style="width: 95%;">
<s:form action="">
<legend style="">Thông tin tìm kiếm</legend>
		
<table>


</table>
<p class="right"><sj:datepicker name="DateBegin" readonly="true" label="Từ ngày"/>
			
		
<p class="right">	<sj:datepicker name="DateEnd" readonly="true" label="Đến ngày" />
		
	
<p class="right"><s:select name="status" value="1" list="{'1','3','5'}" label="Trạng thái" />
<p class="right"><s:url id="searchProduct" value="/#" /> <sj:submit
			title="Tìm kiếm" id="subSearchProduct" href="%{searchProduct}"
			button="true" value="Tìm kiếm"></sj:submit>
</s:form>
</fieldset>
</div>


<div id="textcontent">

<table width="700px" cellpadding="0" cellspacing="0" id="box-table-a"
	summary="Employee Pay Sheet" style="margin-left: 150px;">
		
			<thead>
				<tr>
					<th scope="col">STT</th>
					<th scope="col">Mã hóa đơn</th>
					<th scope="col">Mã hợp đồng</th>
					<th scope="col">Nhân viên lập hóa đơn</th>
					<th scope="col">Nhân viên xác nhận</th>
					<th scope="col">Ngày lập hóa đơn</th>
					<th scope="col">Tiền ban đầu</th>
					<th scope="col">Thuế</th>
					<th scope="col">Giảm giá</th>
					<th scope="col">Tổng tiền</th>				
				</tr>
			</thead>
	
	<tbody>
			<s:iterator value="lstPurchaseInvoice">
			
				<tr>
					<td>1</td>
					<td><s:property value="PurchaseInvoiceID"/></td>
					<td><s:property value="purchaseContract.PurchaseContractID"/></td>
					<td><s:property value="employeeByCoordinator.account.UserName"/></td>
					<td><s:property value="employeeByManager.account.UserName"/></td>
					<td><s:property value="WritingDate"/></td>		
					<td><s:property value="PreTotalMoney"/></td>	
					<td><s:property value="Tax"/></td>	
					<td><s:property value="Discount"/></td>	
					<td><s:property value="TotalMoney"/></td>			
				</tr>
				
				</s:iterator>
		
		
		
		<tr class="footer">
			<td colspan="2">&nbsp;</td>
			<td align="right">&nbsp;</td>
			<td colspan="3" align="right">
			
			<!--  PAGINATION START  -->
			<div class="pagination"><span class="previous-off">&laquo;
			Previous</span> <span class="active">1</span> <a href="#">2</a> <a href="#">3</a>
			<a href="#">4</a> <a href="#">5</a> <a href="#" class="next">Next
			&raquo;</a></div>
			<!--  PAGINATION END  --></td>
			
		</tr>
	</tbody>
	
</table>

</div>
</body>
</html>